the 27-year-old was taken off in the first half of their victory on penalties over bayer leverkusen in the german cup last eight on wednesday .
the morocco international said on his twitter account that a medical examination suggested he would be out for between ` two and four weeks ' .
the was no official comment on the injury from bayern , who travel to porto next week .